x86/boot: fix BIOS memory corruption on certain IBM systems
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Dec 2013 10:28:00 +0000 (11:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 6 Dec 2013 10:28:00 +0000 (11:28 +0100)
commit1ed76797439e384de18fcd6810bd4743d4f38b1e
tree8c32ebdc95ec035785f3f48b42f21033cdc06730
parentf1c9658d6802c4332f8bafdb049811bad5c9a786
x86/boot: fix BIOS memory corruption on certain IBM systems

IBM System x3530 M4 BIOSes (including the latest available at the time of this
patch) will corrupt a byte at physical address 0x105ff1 to the value of 0x86
if %esp has the value 0x00080000 when issuing an `int $0x15 (ax=0xec00)` to
inform the system about our intended operating mode.

Xen gets unhappy when the bootloader has placed it's .text section in over
this specific region of RAM.

After dropping into 16bit mode, clear all 32 bits of %esp, and for the BIOS
call already documented to be affected by BIOS bugs clear all GPRs.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Release-acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/trampoline.S